package com.itxiao.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * sku规格表(Sku)表实体类
 *
 * @author makejava
 * @since 2025-10-12 17:07:25
 */
@Data
@TableName("sku")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Sku {
    //主键
    @TableId(type = IdType.AUTO)
    private Long id;
    //商品id
    private Long spuId;
    //规格标题
    private String title;
    //售卖价格
    private Long salePrice;

    private String specs;
    //组图
    private String image;
    //创建时间
    private Date createTime;
    //最后更新时间
    private Date updateTime;

    private Long stock;
    //3上架2下架
    private Integer status;
    //重量 单位kg
    private Double weight;
    //成本价
    private Long costPrice;
    //建议销售价
    private Long suggestPrice;
    //店铺id
    private Integer shopId;
}

